package com.wsoft.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wsoft.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 员工表
 * </p>
 *
 * @author juiet
 * @since 2024年09月03日 10:35:18
 */
@Getter
@Setter
@TableName("sys_member")
@Schema(name = "SysMemberEntity", description = "员工表")
public class SysMemberEntity extends BaseEntity {

    @Schema(description = "账号id")
    @TableField("account_id")
    private Long accountId;

    @Schema(description = "是否管理员")
    @TableField("is_admin")
    private Integer isAdmin;

    @Schema(description = "编号")
    @TableField("code")
    private String code;

    @Schema(description = "姓名")
    @TableField("name")
    private String name;

    @Schema(description = "男M/女F")
    @TableField("gender")
    private String gender;

    @Schema(description = "手机号")
    @TableField("phone")
    private Long phone;

    @Schema(description = "住址")
    @TableField("address")
    private String address;

    @Schema(description = "头像")
    @TableField("photo")
    private String photo;

    @Schema(description = "职务级别")
    @TableField("level_id")
    private Long levelId;

    @Schema(description = "主任职组织")
    @TableField("cur_org_id")
    private Long curOrgId;

    @Schema(description = "主任职岗位")
    @TableField("cur_post_id")
    private Long curPostId;

    @Schema(description = "排序")
    @TableField("sort")
    private Integer sort;

    @Schema(description = "备注")
    @TableField("remark")
    private String remark;

    @Schema(description = "数据字典(在职、离职、停岗)")
    @TableField("status")
    private Integer status;

    @Schema(description = "登录组织_id")
    @TableField("login_org_id")
    private Long loginOrgId;

    @Schema(description = "登录组织_编码")
    @TableField("login_org_code")
    private String loginOrgCode;

    @Schema(description = "登录组织_名称")
    @TableField("login_org_name")
    private String loginOrgName;
}
